package com.javalab._7thread._3Lock._3JUC._1Lock;

public class MyRunnable implements Runnable {
    private CommonData counter;

    public MyRunnable(CommonData counter) {
        this.counter = counter;
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            counter.add();
        }
    }
}
